home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1988 November
/
Ahoy_Magazine_88-11_1988_Double_L.d64
/
Written REM 1
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
401b
|
13 lines
1 rem ==================================
2 rem commodares problem #54-3 :
3 rem written remainder
4 rem solution by
5 rem dr. dave marquis
6 rem ==================================
10 input"[147]what is the number to be divided";a
20 input"what is the divisor";b
30 c=a/b
40 print""a"/"b" ="int(c)", remainder"int((c-int(c))*b+.1)
50 input"another division problem (y/n)";a$
60 if a$="y" then 10